﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Studio7i.Dominio.Reserva>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CodReserva
            </th>
            <th>
                FechReser
            </th>
            <th>
                Hora
            </th>
            <th>
                Tiempo
            </th>
            <th>
                Costo
            </th>
            <th>
                Estado
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Editar", new { codigo = item.CodReserva })%> |
                <%: Html.ActionLink("Ver", "Ver", new { codigo = item.CodReserva })%> |
                <%: Html.ActionLink("Eliminar", "Eliminar", new { codigo = item.CodReserva })%>
            </td>
            <td>
                <%: item.CodReserva %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.FechReser) %>
            </td>
            <td>
                <%: item.Hora %>
            </td>
            <td>
                <%: item.Tiempo %>
            </td>
            <td>
                <%: item.Costo %>
            </td>
            <td>
                <%: item.Estado %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Creacion")%>
    </p>

</asp:Content>

